//
//  LefuProductPlugin+Common.swift
//  Runner
//
//  Created by LanjingMini on 2025/3/13.
//

import Foundation


/// 原生传递事件类型
public struct LefuNativeMethodType {
    
    // 初始化sdk
    static let initSdk = "lefu_initSdk"
    
    /// 开启设备监听及蓝牙服务
    static let startService = "lefu_startService"
    
    /// 关闭备监听及蓝牙服务
    static let stopService = "lefu_stopService"


    /// 搜索周边设备
    static let startSearchArround = "lefu_searchSurroundDevice"
    
    /// 停止搜索设备
    static let stopSearchArround = "lefu_stopSurroundDevice"

    

   
}

/// 原生传递事件类型
public struct LefuNativeEventType {
    
    
    
    /// 设备蓝牙状态变化
    static let bluetoothStateChange = "lefu_bluetoothStateChange"
    
    /// 扫描设备回调
    static let didFoundSurroundDevice = "lefu_didFoundSurroundDevice"
    
    
    /// 设备信息
    static let deviceInfo = "deviceInfo"
    static let peripheralInfo = "peripheralInfo"
    
    
}

/// 蓝牙状态
public class BluetoothState {
    static let off = 0                   // 蓝牙关闭
    static let on = 1                    // 蓝牙开启
    static let connected = 2             // 连接
    static let connectFailed = 3         // 连接失败
    static let disconnected = 4          // 断开连接
}
